package com.tms.core.constants;

/**
 * familyController 控制类常量
 *
 * @author ozj
 */
public enum FamilyConstants {

    /**
     * 操作成功
     */
    SUCCESS("success", "操作成功。"),

    /**
     * 操作失败
     */
    ERROR("failed", "操作失败。"),

    /**
     * 查询时获取 workcellId 失败即 token解析出错
     */
    ERROR_TOKEN(ERROR.getStatus(), "token过期或者格式不正确，请重新获取token。"),
    ;

    /**
     * 状态
     */
    private String status;

    /**
     * 描述
     */
    private String desc;

    FamilyConstants(String status, String desc) {
        this.status = status;
        this.desc = desc;
    }

    public String getStatus() {
        return status;
    }

    private void setStatus(String status) {
        this.status = status;
    }

    public String getDesc() {
        return desc;
    }

    private void setDesc(String desc) {
        this.desc = desc;
    }
}
